﻿namespace QuickMail.View.Controls
{
    using QuickMail.DataModels;

    /// <summary>
    /// Properties control for receive emails.
    /// </summary>
    public partial class ReceiveControl
    {
        /// <summary>
        /// The constructor.
        /// </summary>
        public ReceiveControl()
        {
            InitializeComponent();
            SetCurrentTranslate();
        }

        /// <summary>
        /// Sets the current translation for form elements.
        /// </summary>
        private void SetCurrentTranslate()
        {
            MailFromTextBlock.Text = StaticFields.Lang.PropertyWindow.MailFrom;
            MailFromTextBox.ToolTip = StaticFields.Lang.PropertyWindow.MailFromTt;
            FilesTypesTextBlock.Text = StaticFields.Lang.PropertyWindow.FilesTypes;
            FilesTypesTextBox.ToolTip = StaticFields.Lang.PropertyWindow.FilesTypesTt;
            ReplacementTextBlock.Text = StaticFields.Lang.PropertyWindow.Replacement;
            RenameItem.Content = StaticFields.Lang.PropertyWindow.Rename;
            ReplaceItem.Content = StaticFields.Lang.PropertyWindow.Replace;
            SkipItem.Content = StaticFields.Lang.PropertyWindow.Skip;
            TextMessageTextBlock.Text = StaticFields.Lang.PropertyWindow.MessageText;
            SaveMessageCheckBox.Content = StaticFields.Lang.PropertyWindow.SaveMessage;
        }
    }
}
